const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  username: state => state.user.userInfo.username, // id
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户头像
  companyId: state => state.user.userInfo.companyId, // 获取公司id
  userId: state => state.user.userInfo.userId// 动态路由
}
export default getters
